extends BattleState

@onready var card_table = $"../../CardTable"
@onready var battle_state_machine = $".."

func enter() -> void:
	if battle_state_machine.draw_card_mode == 0:
		#抽卡
		await card_table.drad_card()
	elif battle_state_machine.draw_card_mode == 1:
		await card_table.drad_card(1)
		battle_state_machine.draw_card_mode = 0
	elif battle_state_machine.draw_card_mode == 2:
		await card_table.draw_card_no_shuffle()
		battle_state_machine.draw_card_mode = 0
	transition_requested.emit(self, State.STATE_IDLE)	
